package net.pws.oos.biz.comm;

public enum PhotoGroup {
	ENVIRONMENTAL_PHOTOGRAPH("100", "环境照片", null),
	ENVIRONMENTAL_DEGREE_0("100_0", "0度", ENVIRONMENTAL_PHOTOGRAPH),
	ENVIRONMENTAL_DEGREE_45("100_45", "45度", ENVIRONMENTAL_PHOTOGRAPH),
	ENVIRONMENTAL_DEGREE_90("100_90", "90度", ENVIRONMENTAL_PHOTOGRAPH),
	ENVIRONMENTAL_DEGREE_135("100_135", "135度", ENVIRONMENTAL_PHOTOGRAPH),
	ENVIRONMENTAL_DEGREE_180("100_180", "180度", ENVIRONMENTAL_PHOTOGRAPH),
	ENVIRONMENTAL_DEGREE_225("100_225", "225度", ENVIRONMENTAL_PHOTOGRAPH),
	ENVIRONMENTAL_DEGREE_270("100_270", "270度", ENVIRONMENTAL_PHOTOGRAPH),
	ENVIRONMENTAL_DEGREE_315("100_315", "315度", ENVIRONMENTAL_PHOTOGRAPH),
	ENVIRONMENTAL_DEGREE_360("100_360", "更多", ENVIRONMENTAL_PHOTOGRAPH),
	
	SECTOR_PHOTOGRAPH("200", "扇区照片", null),
	SECTOR_0("200_0", "0扇区", SECTOR_PHOTOGRAPH),
	SECTOR_1("200_1", "1扇区", SECTOR_PHOTOGRAPH),
	SECTOR_2("200_2", "2扇区", SECTOR_PHOTOGRAPH),
	SECTOR_3("200_3", "更多扇区", SECTOR_PHOTOGRAPH),
	
	MORE_PHOTOGRAPH("300", "更多", null),
	MORE_1("300_1", "机房照片", MORE_PHOTOGRAPH),
	MORE_2("300_2", "机房设备照片", MORE_PHOTOGRAPH),
	MORE_3("300_3", "塔桅照片", MORE_PHOTOGRAPH),
	MORE_4("300_4", "勘查草图照片", MORE_PHOTOGRAPH);
	// 成员变量
	private String id;
	private String name;
	private PhotoGroup parent;

	// 构造方法
	private PhotoGroup(String id, String name, PhotoGroup parent) {
		this.id = id;
		this.name = name;
		this.parent = parent;
	}

	// 普通方法
	public static String getName(String id) {
		for (PhotoGroup c : PhotoGroup.values()) {
			if (c.getId() == id) {
				return c.name;
			}
		}
		return null;
	}

	// get set 方法
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public PhotoGroup getParent() {
		return parent;
	}

	public void setParent(PhotoGroup parent) {
		this.parent = parent;
	}
}
